package com.eshop.eshop2021_v1.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author: 若若叶
 * @date: 2021/10/7 8:54 FileName: Goods Description:
 */
// goodstable表
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("goodstable")
public class Goods {
  @TableId(type = IdType.AUTO)
  private Integer id;

  private String gname;
  private Double goprice;
  private Double grprice;
  private String gstore;
  private String gpicture;
  private Integer isRecommend;
  private Integer isAdvertisement;

  @TableField("goodstype_id")
  private Integer goodsTypeId;

  private Integer userId;

  @TableField(exist = false)
  //  private String typename;
  private GoodType goodType;
}
